﻿using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using smartphone.App_Code;

namespace smartphone.UserControls
{
    public partial class MainSlideShow : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DbCommand com = GenericDataAccess.CreateCommand();
                com.CommandText = "GetHomeSlideImage";

                DataTable table = GenericDataAccess.ExecuteSelectCommand(com);
                RepeaterMainSlideShow.DataSource = table;
                RepeaterMainSlideShow.DataBind();
            }
        }
    }
}